﻿using System.Web.Mvc;
using Gridify.Controllers;
using Gridify.Test.Services;

namespace Gridify.Test.Controllers
{
    public class PersonController : Controller
    {
        readonly PersonGenerator _personService = new PersonGenerator();
        
        public ActionResult List()
        {
            return View(_personService.GetRandomData(2000));
        }

        public ActionResult ListWithGrid()
        {
            return View("List", this.Gridify(_personService.GetRandomData(2000), 25, "~/Views/Person/_List.cshtml"));
        }
    }
}
